package com.eliza.music.compoment.music

import androidx.compose.foundation.Canvas
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.drawscope.Stroke

@Composable
fun Disc(modifier: Modifier = Modifier) {
    val rippleRadius = 2 * 150f
    Canvas(
        modifier = modifier
    ) {
        drawCircle(
            color = Color.Gray.copy(0.3f),
            radius = rippleRadius.times(1.4f),
            center = center,
        )
        drawCircle(
            color = Color.Black,
            radius = rippleRadius.times(1.3f),
            center = center
        )
        for (i in 0..13) {
            drawCircle(
                color = Color.Gray.copy(0.7f),
                radius = rippleRadius.times(1f + i * 0.02f),
                center = center,
                style = Stroke(1f)
            )
        }
    }
}